
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Demo01</title>
</head>
<body>

<%--dfgdsflkghdslfkgC:\Users\Administrator\.IntelliJIdea2019.2\system\tomcat\_javaweb_30--%>


<%
    int a = 10;
    int b = 20;
    int c = a + b;
    System.out.println(c);//就应该打印在控制台
    out.println(c);

%>
sdfghsdfvsdfg
<%=c%>
<%!int c=50;%>
<%!
    //
    public void sing() {
        System.out.println("只因你太美");
        System.out.println(c);
    }

%>
<%sing();%>


</body>
</html>
